<template>
  <div>
      <span>testIndex</span>
      <span>用户名:{{$route.query.name}}</span>
  </div>
</template>

<script>
  export default {
        name:"testIndex",
        mounted(){//挂载函数
            var name = this.$route.query.name;
            console.log("name="+name);
        }
  }

</script>

<style>
</style>
